package com.mercury.pattern._07_decorator;

/**
 *
 */
public abstract class Drink {
    //描述
    public String desc;
    // 价格
    public float price;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    //计算价格的方法
    public abstract float cost();
}